<template>
  <div class="pdf-show">
    <!-- :src="'/generic/web/viewer.html?file=' + pdfUrl2" -->
    <iframe
      id="iframe"
      :src="'/generic/web/viewer.html?file=' + pdfUrl2"
      ref="ifr"
      frameborder="0"
      width="100%"
      height="100%"
      scrolling="auto"
    ></iframe>
    <!-- src="@/assets/generic/web/viewer.html" -->
  </div>
</template>
<script>
// import pdfUrl from "@/assets/pdf/git.pdf";
// const pdfUrl = "assets/pdf/git.pdf";
// const asd = process.env.VUE_APP_TITLE == 'bruce'
export default {
  name: "operateManual",
  data() {
    return {
      // pdfUrl2: "https://www.gjtool.cn/pdfh5/git.pdf",
      pdfUrl2:
        process.env.VUE_APP_TITLE == "bruce"
          ? "布鲁斯标准版吊挂用户手册.pdf"
          : "杰克标准版吊挂用户手册.pdf",
      //   pdfUrl2: pdfUrl,
    };
  },
  computed: {},
  methods: {},
};
</script>
<style scoped>
.pdf-show {
  margin: 20px;
  padding: 0px !important;
  height: calc(100vh - 150px);
  background: #fff;
  border-radius: 4px;
}
</style>